package com.chennan.redis.domain.distributedlockservice;

/**
 * @author chennan
 * @createTime 2021年07月23日 14:02:00
 */
public interface SimpleDistributedLockService {

    <T> T doWithLock(String var1, SimpleDistributedLockService.LockCallback<T> var2);

    <T> T doWithLockNoBlock(String var1, Integer var2, SimpleDistributedLockService.LockCallback<T> var3);

    public interface LockCallback<T> {
        T doBiz() throws Throwable;
    }
}
